<!--分页显示栏开始-->
<div th:fragment="incPage">
    <div style="height:40px;"></div>
    <div class="row no-margins no-padding ljLayPage">
        <div class="pull-left p-lr-sm pageInfo" th:inline="text">总条数:[[${page?.totalCount}]]
            总页数:[[${page?.pageNum}]]/[[${page?.totalPage}]]
        </div>
        <div class="pull-right tablePage"></div>
    </div>
    <script type="text/javascript" th:inline="javascript">
        /*<![CDATA[*/
        let pageNum = [[${page?.pageNum}]];
        let totalPage = [[${page?.totalPage}]];
        $(function () {
            layui.use(['laypage'], function () {
                var laypage = layui.laypage;
                laypage({
                    cont: $(".tablePage")
                    , curr: pageNum
                    , pages: totalPage
                    , groups: 5
                    , skip: true,
                    jump: function (obj, first) {
                        if (!first && obj.curr != pageNum) {
                            $("#pageNum").val(obj.curr);
                            $("#pagerForm").submit();
                        }
                    }
                });
            });
        });
        /*]]>*/
    </script>
</div>
<!--分页显示栏结束-->